package logic.nodes.lod.blocks;

public class BlockVisitor {
	
	public BlockVisitor() {}
	
	public void visit(AbstractBlock block) {
		if(block instanceof Block) visit((Block)block);
		else {
			assert(block instanceof LeafBlock);
			visit((LeafBlock)block);
		}
	}
	
	public void visit(Block block) {
		visit(block.getBlockA());
		visit(block.getBlockB());
	}
	
	@SuppressWarnings("unused")
	public void visit(LeafBlock block) {}
}